package com.chen.web_chat.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天记录表
 * </p>
 *
 * @author author
 * @since 2024-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chatting_records")
@ApiModel(value="ChattingRecords对象", description="聊天记录表")
public class ChattingRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发送者账号")
    private String sendAccount;

    @ApiModelProperty(value = "接收者账号")
    private String receiveAccount;

    @ApiModelProperty(value = "内容")
    private String message;

    @ApiModelProperty(value = "类型（1文字2语音3视频）")
    private Integer type;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sendTime;


}
